home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 4574 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.0 KB  |  53 lines

  1. Path: earth.superlink.net!usenet
  2. From: rizzom@superlink.net
  3. Newsgroups: comp.lang.c
  4. Subject: Newbie Q: Arrays > 64K?
  5. Date: 4 Feb 1996 22:05:32 GMT
  6. Organization: SuperNet Inc. (908) 828-8988
  7. Message-ID: <4f3ajc$oud@earth.superlink.net>
  8. NNTP-Posting-Host: ez2.superlink.net
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 1.22 (Windows; I; 32bit)
  13.  
  14. Hi,
  15.  
  16.   I am using Turbo C++ 3.0 in DOS.  I would just like to know 
  17. how to declare an array that is larger than 64K.  I have tried 
  18. all of the memory models available and still get an error 
  19. saying Array too large.  Here is the code:
  20.  
  21.  
  22. typedef enum {IDLE = 0, BUSY = 1} proc_state;
  23.  
  24. typedef struct
  25.        {
  26.        char inst[10];
  27.        }InstString;
  28.  
  29. typedef struct
  30.        {
  31.        int datamem[102];
  32.        InstString instruct[102];
  33.        proc_state state;
  34.        int PC;
  35.        char IR[10];
  36.        int AC;
  37.        }VMProc;
  38.  
  39.  
  40. main()
  41. {
  42. VMProc proc[64];
  43. ..
  44. }
  45.  
  46. Any help would be greatky appreciated.
  47.  
  48. Thanks
  49.  
  50. Mike Rizzo
  51. rizzom@superlink.net
  52.  
  53.